package org.sradon.service.impl;

import org.sradon.dao.DoubleDao;
import org.sradon.mySpring.anno.di.Autowired;
import org.sradon.mySpring.anno.ioc.Service;
import org.sradon.service.TypesService;

import javax.annotation.Resource;

@Service("TS")
public class TypesServiceImpl implements TypesService {
    @Autowired
    // @Resource
    DoubleDao doubleDao;  // 会注入Impl1

    @Override
    public void testDoubleDAO() {
        System.out.println("*** TypesService被执行了: ");
        doubleDao.run();
    }
}
